import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/answer',
  name: 'answerthequestionnaire',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.answerthequestionnaire',
    requiresAuth: true,
    icon: 'icon-list',
    order: 7,
  },
  children: [
    // {
    //   path: 'search-table', // The midline path complies with SEO specifications
    //   name: 'AnswerTable',
    //   component: () =>
    //     import('@/views/answerthequestionnaire/search-table/index.vue'),
    //   meta: {
    //     locale: 'menu.answerthequestionnaire.searchTable',
    //     requiresAuth: true,
    //     roles: ['admin', 'respondent'],
    //   },
    // },
    {
      path: 'answerques',
      name: 'AnserQuestion',
      component: () =>
        import('@/views/answerthequestionnaire/answer-question/index.vue'),
      meta: {
        locale: 'menu.answerthequestionnaire.anserQuestion',
        requiresAuth: true,
        roles: ['admin', 'respondent'],
      },
    },
  ],
};

export default LIST;
